package cn.itlaobing.eshop.dao;/**
 * Created by 1223 on 2017/11/14.
 */

import cn.itlaobing.eshop.entity.ItlbFocuss;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanListHandler;

import java.sql.SQLException;
import java.util.List;

/**
 * 类名：
 * 描述：
 * 作者：陈志凯
 * 时间：2017/11/14
 */
public class FocussDao extends BaseDao{
    public List<ItlbFocuss> queryFoucss() throws SQLException {
        String sql=" SELECT * FROM itlb_focuss ";
        QueryRunner qr=new QueryRunner(getDataSource());
        BeanListHandler<ItlbFocuss> beanListHandler=new BeanListHandler<>(ItlbFocuss.class);
        return qr.query(sql,beanListHandler);
    }
}
